<admintpl file="header" />
</head>
<body style="width:2560px;">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <if condition="$admin['role_id'] lt 20 ">
                <li class="active"><a href="{:U('Analysis/index')}">数据汇总</a></li>
                <li><a href="{:U('Analysis/day')}">单日统计</a></li>
                <li><a href="{:U('Analysis/activity')}">活动统计</a></li>
            </if>
            <li><a href="{:U('Analysis/materials')}">物料统计</a></li>
            <if condition="$admin['role_id'] lt 20 ">
                <li><a href="{:U('Analysis/equipment')}">设备统计</a></li>
                <li><a href="{:U('Analysis/users')}">用户统计</a></li>
            </if>
                <li><a href="{:U('Analysis/winning')}">中奖记录</a></li>
            <if condition="$admin['role_id'] lt 20 ">
                <li><a href="{:U('Analysis/withdraw')}">提现记录</a></li>
                <li><a href="{:U('Analysis/logs')}">摇摇记录</a></li>
                <li><a href="{:U('Analysis/urls')}">链接记录</a></li>
            </if>
        </ul>
        <form class="well form-search js-ajax-form" method="post" action="{:U('Analysis/index')}">
        	页面名称:
            <select name="keyword">
            	<option value="0">请选择</option>
                <foreach name="pageids" item="vo">
                    <option <if condition="(I('param.keyword') eq $vo['pageid'])" >selected</if> value="{$vo.pageid}">{$vo.pagename}</option>
                </foreach>
            </select>
            时间范围:
            <input type="text" name="start_time" style="width: 80px;" class="js-date" value="{:I('param.start_time')}" autocomplete="off"> ~
            <input type="text" name="end_time" style="width: 80px;" class="js-date" value="{:I('param.end_time')}" autocomplete="off">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <if condition="$count" >共查询到 {$count} 条数据</if>

        </form>
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                    	<th>ID</th>
                    	<th>时间</th>
                    	<th>页面ID</th>
                    	<th>页面名称</th>
                    	<th>摇周边人</th>
                    	<th>摇周边次</th>
                    	<th>点击人数</th>
                    	<th>点击次数</th>
                        <th>关联设备</th>
                    	<th>活跃设备</th>
                        <th>使用设备</th>
                        <th>老用户数</th>
                        <th>新用户数</th>
                        <th>中奖次数</th>
                        <th>未中奖次</th>
                        <th>用户总数</th>
                    	<th>用户展示</th>
                        <th>参与人数</th>
                    	<th>红包发放</th>
                        <th>红包金额(元)</th>
                        <th>提现金额(元)</th>
                        <th>卡券</th>
                    	<th>实物</th>
                        <th>链接展示</th>
                    	<th>点击人数</th>
                    </tr>
                </thead>
                <foreach name="analysis" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.datetime}</td>
                        <td>{$vo.pageid}</td>
                        <td>{$vo.pagename}</td>
                        <td>{$vo.shake_uv}</td>
                        <td>{$vo.shake_pv}</td>
                        <td>{$vo.click_uv}</td>
                        <td>{$vo.click_pv}</td>
                        <td>{$vo.related}</td>
                        <td>{$vo.active}</td>
                        <td>{$vo.uses}</td>
                        <td>{$vo.olds}</td>
                        <td>{$vo.news}</td>
                        <td>{$vo.winning}</td>
                        <td>{$vo.nowinning}</td>
                        <td>{$vo.user_uv}</td>
                        <td>{$vo.user_pv}</td>
                        <td>{$vo.participate}</td>
                        <td>{$vo.reds}</td>
                        <td>{$vo.moneys}</td>
                        <td>{$vo.withdraw}</td>
                        <td>{$vo.cards}</td>
                        <td>{$vo.reals}</td>
                        <td>{$vo.total_link}</td>
                        <td>{$vo.user_link}</td>
                    </tr>
                </foreach>
            </table>
            <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>